package com.cqie.practicaltraining.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cqie.practicaltraining.config.result.R;
import com.cqie.practicaltraining.domain.Datatype;
import com.cqie.practicaltraining.service.DatatypeService;
import com.cqie.practicaltraining.mapper.DatatypeMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 9977
 * @description 针对表【datatype(字典数据类型)】的数据库操作Service实现
 * @createDate 2024-12-26 10:47:28
 */
@Service
public class DatatypeServiceImpl extends ServiceImpl<DatatypeMapper, Datatype> implements DatatypeService {
    @Override
    public R getAllDatatype() {
        List<Datatype> datatypeList = this.list();
        if (!datatypeList.isEmpty())
            return R.Success(datatypeList);
        return R.Failed("暂无数据");
    }

    @Override
    public R updateDataTypeStatus(Long typeId, Integer status) {
        return null;
    }
}




